package io高级流or处理流;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class PWDemo {
    public static void main(String[] args) throws IOException {

        PrintWriter pw = new PrintWriter("./src/io高级流or处理流/yui.txt");
        pw.write("大奖赛偶的煎熬时间都将2");
        pw.write("行还是是穷得很穷");
        pw.close();



//        FileOutputStream fol = new FileOutputStream("./src/io高级流or处理流/bnm.txt");//文件流
//        OutputStreamWriter osw = new OutputStreamWriter(fol, StandardCharsets.UTF_8);//转换流
//        BufferedWriter bw = new BufferedWriter(osw);//缓冲流
//        PrintWriter pw1 = new PrintWriter(bw);
//
//        pw1.println("捡到手机都安静");
//        pw1.println("捡到手机都安静");
//        pw1.close();




    }
}
